all: write read

write: write.cc user.pb.h user.pb.cc
	g++ -o $@ $^ -lprotobuf -std=c++11
read: read.cc user.pb.h user.pb.cc
	g++ -o $@ $^ -lprotobuf -std=c++11

clean:
	rm -f write read